﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台首页</title>

<link rel="stylesheet" href="../../../Public/static/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../Public/static/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../Public/admin/css/index.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../Public/admin/css/main.css" type="text/css" media="screen" />

<script type="text/javascript" src="../../../Public/static/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../../../Public/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../../Public/admin/js/tendina.min.js"></script>
<script type="text/javascript" src="../../../Public/admin/js/common.js"></script>

<!-- 编辑器源码文件 -->
<!-- <script type="text/javascript" src="../../../Public/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../../../Public/static/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../../Public/static/ueditor/lang/zh-cn/zh-cn.js"></script> -->
<script type="text/javascript">
// var ue = UE.getEditor('container');
</script>
</head>
<body>
<!--顶部-->
<div class="row">
        <div class="layout_top_header">
            <div style="float: left"><span style="font-size: 16px;line-height: 45px;padding-left: 20px;color: #fff">众规武汉-管理后台</h1></span></div>
            <div id="ad_setting" class="ad_setting">


                <a class="ad_setting_a" href="javascript:; ">
                    <i class="icon-user glyph-icon" style="font-size: 20px"></i>
                    <span>admin</span>
                    <i class="icon-chevron-down glyph-icon"></i>
                </a>
                <ul class="dropdown-menu-uu" style="display: none" id="ad_setting_ul">
                    <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-user glyph-icon"></i> 个人中心 </a> </li>
                    <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-cog glyph-icon"></i> 设置 </a> </li>
                    <li class="ad_setting_ul_li">
                       
                    </li>
                </ul>

            </div>
        </div>
    </div>
    <!--顶部结束-->
    <!--主体开始-->
    <div class="row main-cont">
        <div class="col-md-12">
            <!-- 左侧菜单引用Left.cshtml -->
            <!--左侧菜单-->
            <div class="col-md-2 layout_left_menu">
                <ul id="menu">
                    <li class="childUlLi">
                        <a href="#" target="menuFrame"><i class="glyph-icon icon-home"></i>首页</a>
                        <ul>
                            <li><a href="/Admin/Manage/Index"><i class="glyph-icon icon-chevron-right"></i>最新动态</a></li>
                        </ul>
                    </li>
                    <li class="childUlLi">
                        <a href="#" target="menuFrame"> <i class="icon-group"></i>用户管理</a>
                        <ul>
                            <li>
                                <a href="/Admin/User/Index"><i class="glyph-icon icon-chevron-right"></i>用户管理</a>
                            </li>
                            <li><a href="/Admin/Role/Index"><i class="glyph-icon icon-chevron-right"></i>角色管理</a></li>
                            <li><a href="/Admin/Competence/Index"><i class="glyph-icon icon-chevron-right"></i>权限管理</a></li>

                        </ul>
                    </li>
                    <li class="childUlLi">
                        <a href="#" target="menuFrame"> <i class="glyph-icon icon-reorder"></i>内容管理</a>
                        <ul>
                            <li><a href="/Admin/Article/ClassIndex"><i class="glyph-icon icon-chevron-right"></i>栏目分类</a></li>
                            <li><a href="/Admin/Article/Add"><i class="glyph-icon icon-chevron-right"></i>发布文章</a></li>
                            <li><a href="/Admin/Article/Index"><i class="glyph-icon icon-chevron-right"></i>新闻列表</a></li>
                            <li><a href="/Admin/Section/Index"><i class="glyph-icon icon-chevron-right"></i>项目列表</a></li>
                        </ul>
                    </li>
                    <li class="childUlLi">
                        <a href="#" target="menuFrame"> <i class="icon-bullhorn"></i>互动管理</a>
                        <ul>
                            <li><a href="/Admin/Vote/Index"><i class="glyph-icon icon-chevron-right"></i>投票系统</a></li>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>推送内容</a></li>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>公告管理</a></li>
                        </ul>
                    </li>
                    <li class="childUlLi">
                        <a href="#"> <i class="icon-wrench"></i>微信基础设置</a>
                        <ul>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>首次关注</a></li>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>自动回复</a></li>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>关键字回复</a></li>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>自定义菜单</a></li>
                        </ul>
                    </li>
                    <li class="childUlLi">
                        <a href="#"> <i class="icon-spinner"></i>数据魔方</a>
                        <ul>
                            <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>关注数</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!--左侧菜单结束-->

            <div class="col-md-10">
                <div class="route_bg">
                    <a href="/Admin/Manage/Index">主页</a><i class="glyph-icon icon-chevron-right"></i>
                    <a href="/Admin/Vote/Addvt">互动管理</a><i class="glyph-icon icon-chevron-right"></i>
                    <a href="#">投票系统</a><i class="glyph-icon icon-chevron-right"></i>
                    <a href="#">编辑问卷内容</a>
                    <span class="pull-right"><a href="javascript:history.go(-1)">【返回】</a></span>
                </div>
                <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">

                    <div class="col-md-2 text-center vote-menu">
                        <h4 class="text-center vot-h4">常用题型</h4>
                        <input type="hidden" name="id" value="36" />
                        <input type="button" class="btn vote-btn btn-success" value="单选题" id="addRadio" />
                        <input type="button" class="btn vote-btn btn-success" value="多选题" id="addCheckbox" />
                        <input type="button" class="btn vote-btn btn-success" value="图片单选题" id="addPicRadio" />
                        <input type="button" class="btn vote-btn btn-success" value="图片多选题" id="addPicCheckbox" />
                        <input type="button" class="btn vote-btn btn-success" value="单行填空题" id="addText" />
                        <input type="submit" id="submit" class="btn vote-btn btn-primary" value="提交预览" />
                    </div>
                    <div class="col-md-10 col-md-offset-2 vote-line">
                        <div class="col-md-12 vote-line">
                            <h4 class="text-center">问卷名称：<a href="">武汉东湖绿道系统规划暨环东湖路绿道实施规划 开展公众规划问卷调查</a></h4>
                        </div>
                        <div class="col-md-12 vote-line" id="xsss">
                            <label class="col-md-8">
                                <span id="vote-tit">单选题</span>
                                <span class="icon-remove vo-remove" id="vo-remove"></span>
                            </label>
                            <div class="col-md-8">
                                <div class="input-group input-group-lg">
                                    <span class="input-group-addon">题目名</span>
                                    <input name="1" class="form-control" value="第一题" />
                                </div>
                                <div class="col-md-12 vote-line" id="test">
                                    <div class="radio" id="1-1">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-1" value="第一题选项1" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                    <div class="radio" id="1-2">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-2" value="第一题选项2" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                    <div class="radio" id="1-3">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-3" value="第一题选项3" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                </div>
                                <span class="icon-plus-sign addnew" id="ah2sdu">增加该题选项</span>
                            </div>
                        </div>
                        <div class="col-md-12 vote-line" id="xsaaa">
                            <label class="col-md-8">
                                <span id="vote-tit">多选题</span>
                                <span class="icon-remove vo-remove" id="vo-remove"></span>
                            </label>
                            <div class="col-md-8">
                                <div class="input-group input-group-lg">
                                    <span class="input-group-addon">题目名</span>
                                    <input name="2" class="form-control" value="第二题" />
                                </div>
                                <div class="col-md-12 vote-line" id="xsss321">
                                    <div class="radio" id="2-1">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-1" value="第二题选项1" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                    <div class="radio" id="2-2">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-2" value="第二题选项2" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                    <div class="radio" id="2-3">
                                        <label>
                                            <input type="radio" name="optionsRadios" />
                                            <input type="text" name="1-3" value="第二题选项3" />
                                            <span class="icon-remove option-remove"></span>
                                        </label>
                                    </div>
                                </div>
                                <span class="icon-plus-sign addnew" id="ahdusa">增加该题选项</span>
                            </div>
                        </div>
                        <div class="col-md-12 vote-line" id="xsaaa">
                            <label class="col-md-8">
                                <span id="vote-tit">单行填空题</span>
                                <span class="icon-remove vo-remove" id="vo-remove"></span>
                            </label>
                            <div class="col-md-8">
                                <div class="input-group input-group-lg">
                                    <span class="input-group-addon">题目名</span>
                                    <input name="2" class="form-control" value="第三题" />
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--主体结束-->
    <!-- 引用Footer.cshtml文件 -->
    <!-- 底部 -->
    <div class="layout_footer row">
        <p>Copyright © 2015 - 众规武汉</p>
    </div>
    <!-- 底部 -->

</body>
</html>
<script>
$(function() {
    $('.addnew').click(function(){
        var bid=$(this).prev().attr("id");
        var s= document.getElementById(bid).getElementsByTagName("div");
        var nbid=s[s.length-1].id;
        // console.log(s[s.length-1].id);
        var lastbid=nbid.substr(nbid.length-1,1);
        var lastbid=parseInt(lastbid)+1;
        var nowbid=nbid.substring(0,nbid.length-1)+lastbid;
        var addRnewid="<div class=\"radio\" id="+nowbid+">"
        +"<label><input type=\"radio\" name=\"optionsRadios\" id=\"optionsRadios1\" value=\"option1\">"
        +"<input name="+nowbid+" type=\"text\" placeholder=\"选项\" />"
        +"<span class=\"icon-remove option-remove\">"
        +"</span>"
        +"</label>"
        +"</div>";
        var bid="#"+bid;
        $(bid).append(addRnewid);
        //删除选项
        $(".option-remove").click(function(){
            $(this).parents("label").remove();
        });
    });
    //删除选项
    $(".option-remove").click(function(){
        $(this).parents("label").remove();
    });
    $(".vo-remove").click(function(){
        var fid=$(this).closest("div")[0].id;
        var rid="#"+fid;
        // console.log(rid);
        $(rid).remove();
    });
    //给span生成特殊id
    // document.form.getElementsByTagName("span")[0].id = randomString(7);
});
</script>
</body>
</html>